<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>bootstrap的form表单布局</title>
		<!---引入jquery资源--->
		<script type="text/javascript" src="${basePath }static/bootstrap-3.3.7-dist/js/jquery.min.js"></script>
		<!--引入bootstrap的核心js资源文件--->
		<script type="text/javascript" src="${basePath }static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
		<!--引入bootstrap的核心css资源文件--->
		<link rel="stylesheet" type="text/css" href="${basePath }static/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
	</head>

	<body>
		<form class="form-horizontal" action="${basePath}doAdminInfoAddWithFileUpload" method="post" enctype="multipart/form-data">
			<div class="form-group">
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminName" name="adminname2" placeholder="请输入用户名">
				</div>
				<label for="txtPsw" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-3">
					<input type="password" class="form-control" id="adminPsw" name="adminpsw" placeholder="请输入密码">
				</div>
			</div>
			<div class="form-group">
				<label for="txtEmail" class="col-sm-2 control-label">邮箱</label>
				<div class="col-sm-3">
					<input type="email" class="form-control" id="adminEmail" name="adminemail" placeholder="请输入邮箱">
				</div>
				<label for="txtSex" class="col-sm-2 control-label">性别</label>
				<div class="col-sm-3">
					<label class="radio-inline">
  						<input type="radio" name="amdinsex" id="amdinSex1" value="男"> 男
					</label>
					<label class="radio-inline">
						<input type="radio" name="amdinsex" id="amdinSex2" value="女"> 女
					</label>					
				</div>
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">电话</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminTel" name="admintel" placeholder="请输入电话">
				</div>
				<label for="txtPsw" class="col-sm-2 control-label">年龄</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="amdinAge" name="amdinage" placeholder="请输入年龄">
				</div>
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">创建日期</label>
				<div class="col-sm-3">
					<input type="date" class="form-control" id="adminCreateTime" name="admincreatetime" placeholder="请输入创建时间">
				</div>
				<label for="txtName" class="col-sm-2 control-label">头像</label>
				<div class="col-sm-3">
					<!-- 因为采用数据字段中存储文件路径的当时上传文件，所有此处文件空间的name属性不能和实体bean的属性名保持一致 -->
					<!-- 约定文件控件和实体bean属性绑定之间的关系：约定file控件的name属性名为：前缀file_实体bean的属性名(注意前缀不能改变，因为action中使用) -->
					<input type="file" class="form-control" id="adminimg" name="file_adminimg">
				</div>	
			</div>
			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-1">
					<button type="submit" class="btn btn-default">提&nbsp;&nbsp;交</button>
				</div>
				<div class="col-sm-offset-1 col-sm-1">
					<button type="reset" class="btn btn-default">取&nbsp;&nbsp;消</button>
				</div>
			</div>
		</form>
	</body>

</html>